package com.zoe.springcloud.service;/*
 *@date 2019/12/14 0014
 */

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

@Component
public class FeignServiceHystrix implements  FeignService {
    public  final JSONObject jsonObject=new JSONObject();
    @Override
    public String feignGet(String message) {
        jsonObject.put("error","该服务当前无法访问");
        jsonObject.put("result",message);
        return jsonObject.toJSONString();
    }
}
